]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Replace event handlers with click action
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Apr 2023 12:11:09 +0000 (14:11 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 Apr 2023 09:01:16 +0000 (09:01 +0000)
commita9ba9b7a471ec09d6d76ec6abcce04aa9847a112
tree2ebd6e586491250b3ea91a7c847cb57b64b739db
parentcd862aa53ebf04b6f9c450885b26e4bf2773d0fc
popupMenu: Replace event handlers with click action

Actions provide a higher-level API than event handlers, not unlike
GTK's event controllers (albeit less complete). Allowing them to
take care of the low-level bits where possible is generally a good
idea.

Menu items are a very straight-forward case, with a good amount
of code saving, so port them over.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2742>
js/ui/popupMenu.js